package com.ljw.food_order_server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 储餐柜
 * </p>
 *
 * @author ljw
 * @since 2021-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("locker")
@ApiModel(value="Locker对象", description="储餐柜")
public class Locker implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "储物柜id")
    @TableId(value = "lockerId", type = IdType.AUTO)
    private Integer lockerId;

    @ApiModelProperty(value = "状态0/1=空闲/已有主")
    private Integer state;

    @ApiModelProperty(value = "主人id")
    @TableField("userId")
    private Integer userId;

    @ApiModelProperty(value = "开柜密码")
    private String password;

    @ApiModelProperty(value = "柜子所处位置1/2=总部/美创")
    @TableField("positionId")
    private Integer positionId;


}
